-- GENERATED SPELL FOR [Luzran] --


function spell0_16245(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16245', 520, 1)
end

function spell1_16245(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(31389,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16245', 591, 1)
end

function spell2_16245(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(13444,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16245', 30287, 1)
end

function Sorts_16245(pUnit, Event)
local choix_sorts_16245 = math.random(0, 2)
if choix_sorts_16245 == 0 then
pUnit:RegisterEvent('spell0_16245', 1, 1)
end
if choix_sorts_16245 == 1 then
pUnit:RegisterEvent('spell1_16245', 1, 1)
end
if choix_sorts_16245 == 2 then
pUnit:RegisterEvent('spell2_16245', 1, 1)
end
end

function mob16245_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16245', math.random(1500, 3000), 1)
end

function mob16245_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16245_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16245_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16245, 1, 'mob16245_Action')
RegisterUnitEvent(16245, 2, 'mob16245_Leave')
RegisterUnitEvent(16245, 3, 'mob16245_Kill')
RegisterUnitEvent(16245, 4, 'mob16245_Die')
